package system

import (
	"github.com/gin-gonic/gin"
	"server/api"
)

type UserRouter struct {
}

//初始化用户路由
func (s *UserRouter) InitUserRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	R = Router.Group("sys-user")
	var userApi = api.ApiGroupApp.SystemApiGroup.UserApi
	{
		R.GET("index", userApi.Index)
		R.POST("save", userApi.Save)
		R.POST("disable", userApi.Disable)
		R.POST("enable", userApi.Enable)
	}
	return
}
